package rhinestone.Model;

import java.io.Serializable;

/**
 * Abstract class Person. This is a template for Customer and Staff classes
 * in order not to duplicate variables and methods, since most of them are the same.
 * 
 * @author Group 2
 * @version 2010.12.15
 */
public abstract class Person implements Serializable
{
    // instance variables
    protected String name;
    protected String address;
    protected String cpr;
    protected String phone;

	/**
	 * Constructor.
	 *
	 * @param name The name of the customer.
	 * @param address The address of the customer.
	 * @param cpr The cpr of the customer.
	 * @param phoneNr The phone number of the customer.
	 */
    public Person(String name, String address, String cpr, String phone)
    {
        this.name = name;
        this.address = address;
        this.cpr = cpr;
        this.phone = phone;
    }

	/**
	 * Down there are all the get and set methods.
	 */
    public void setName(String name)
    {
        this.name = name;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }
    public void setCpr(String cpr)
    {
        this.cpr = cpr;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }
    public String getName()
    {
        return name;
    }
    public String getAddress()
    {
        return address;
    }
    public String getCpr()
    {
        return cpr;
    }
    public String getPhone()
    {
        return phone;
    }
}
